package cn.ltgodm.sandbox.test.readCode;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

/**
 * @author ltgodm
 * @date 2024-03-08 10:41:51
 */
public class Main {
    public static void main(String[] args) throws IOException {
        String dir = System.getProperty("user.dir");
        //D:\a_work\oj\code\moj-code-sandbox\src\main\resources\application.yaml
        String path = dir + File.separator +"/src/main/resources/application.yaml";
        List<String> strings = Files.readAllLines(Paths.get(path));
        System.out.println(String.join("\n",strings));
    }
}
